/**
 * 
 */
package com.wqr.it.ecwdr.vo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author adinos
 *
 */
public class ProductFinancialVO extends BaseVO {
	private static final long serialVersionUID = -8274431797213007912L;
	private String operator;
	private int itemId = -1;
	private int brandId = -1;
	private String price;
	private BigDecimal beforeDiscount;
	private int freeShipping = 0;
	private String shippingSource;
	private Date collectDate;
	
	/**
	 * @return the shippingSource
	 */
	public String getShippingSource() {
		return shippingSource;
	}
	/**
	 * @param shippingSource the shippingSource to set
	 */
	public void setShippingSource(String shippingSource) {
		this.shippingSource = shippingSource;
	}
	/**
	 * @return the itemId
	 */
	public int getItemId() {
		return itemId;
	}
	/**
	 * @param itemId the itemId to set
	 */
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	/**
	 * @return the brandId
	 */
	public int getBrandId() {
		return brandId;
	}
	/**
	 * @param brandId the brandId to set
	 */
	public void setBrandId(int brandId) {
		this.brandId = brandId;
	}
	/**
	 * @return the price
	 */
	public String getPrice() {
		return price;
	}
	/**
	 * @return the beforeDiscount
	 */
	public BigDecimal getBeforeDiscount() {
		return beforeDiscount;
	}
	/**
	 * @param beforeDiscount the beforeDiscount to set
	 */
	public void setBeforeDiscount(BigDecimal beforeDiscount) {
		this.beforeDiscount = beforeDiscount;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}
	/**
	 * @return the freeShipping
	 */
	public int getFreeShipping() {
		return freeShipping;
	}
	/**
	 * @param freeShipping the freeShipping to set
	 */
	public void setFreeShipping(int freeShipping) {
		this.freeShipping = freeShipping;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + itemId;
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof ProductFinancialVO)) {
			return false;
		}
		ProductFinancialVO other = (ProductFinancialVO) obj;
		if (itemId != other.itemId) {
			return false;
		}
		return true;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ProductPrice [itemId=" + itemId + ", brandId=" + brandId + ", "
				+ (operator != null ? "operator=" + operator + ", " : "")
				+ (price != null ? "price=" + price + ", " : "")
				+ (collectDate != null ? "collectDate=" + collectDate + ", " : "")
				+ (beforeDiscount != null ? "beforeDiscount=" + beforeDiscount + ", " : "") + "freeShipping=" + freeShipping + ", "
				+ (shippingSource != null ? "shippingSource=" + shippingSource : "") + "]";
	}
	/**
	 * @return the collectDate
	 */
	public Date getCollectDate() {
		return collectDate;
	}
	/**
	 * @param collectDate the collectDate to set
	 */
	public void setCollectDate(Date collectDate) {
		this.collectDate = collectDate;
	}
	/**
	 * @return the operator
	 */
	public String getOperator() {
		return operator;
	}
	/**
	 * @param operator the operator to set
	 */
	public void setOperator(String operator) {
		this.operator = operator;
	}
}
